package com.ken;

import com.ken.core.XlsxProcessAbstract;
import com.ken.example.FileXlsxProcess;
import com.ken.example.User;

import java.io.File;
import java.util.List;

public class Main {

    public static void main(String[] args) {
        File file = new File("/Users/ken/IdeaProjects/excel-util/test.xlsx");
        XlsxProcessAbstract xlsxProcessAbstract = new FileXlsxProcess(file);
        List<User> list = null;
        try {
            list = xlsxProcessAbstract.processAllSheet(1, User.class);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(list.toString());
    }
}
